package Revise;

import java.util.Arrays;

public class string {
    public static void main(String[] args) {
        String s1=new String("hello").intern();
        String s2="hello";
        System.out.println(s1==s2);
        System.out.println(s1.substring(0,1));
        byte[] b=s2.getBytes();
        System.out.println((char)b[0]);
        System.out.println(s1.contains("a"));
        String s3="a b c d e f";
        String[] arr1=s3.split(" ",3);
        System.out.println(Arrays.toString(arr1));

        StringBuilder str=new StringBuilder("helloWorld");
        System.out.println(str.delete(5,10));
        System.out.println(str.insert(5 ,"世界"));
    }
}
